package com.example.tijianbackend.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@TableName("users")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Users {

    @TableId("userId")
    private String userId;

    private String password;

    @TableField("realName")
    private String realName;

    private Integer sex;

    @TableField("identityCard")
    private String identityCard;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    @TableField("userType")
    private Integer userType;

}